package sort;

import java.util.List;
import java.util.LinkedList;
import java.util.Collections;

public class SortTest {

    public static void main(String[] args) {

        List<String> staff = new LinkedList<>();

        staff.add("Tom");
        staff.add("Bob");
        staff.add("Ben");
        staff.add("Dan");
        staff.add("Andy");

        Collections.sort(staff);

        for (String element : staff)
            System.out.println(element);
    }
}
